package wpp.util;

import javafx.scene.Node;
import javafx.scene.control.Control;
import javafx.scene.layout.Region;

public class JavaFXUtil {
	
	
	public static void printControlSize(Control control) {
		System.out.println(control.getClass().getSimpleName() 
				+ " width:" + control.getWidth()
				+ " height:" + control.getHeight());
	}
	
	public static void printRegionSize(Region region) {
		System.out.println(region.getClass().getSimpleName() 
				+ " width:" + region.getWidth()
				+ " height:" + region.getHeight());
	}
	
	public static void nodeRealInvisible(Node node) {
		node.setVisible(false);
		node.setManaged(false);
	}
	
	public static void nodeRealVisible(Node node) {
		node.setVisible(true);
		node.setManaged(true);
	}
}
